theme:body
Purpose
Defines the <body>
of a Theme layout.
This is a shortcut for rendering the <body>
tag of a page including any Sitemesh attributes to decorate the body with, and will also
automatically call Resources <r:layoutResources/> for the "defer" disposition.
Inside the body your theme layout will typically add some structural markup and use <theme:layoutZone>
to render the various content zones inside your markup.
You do not need to use this tag to define a theme layout's body - but if you do not you must remember to call the r:layoutResources
tag at the end of the body to render the deferred Resources of the page.
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 | <!DOCTYPE html> < html > < theme:head /> < theme:body > < ui:logo /> < theme:layoutZone name = "navigation" /> < theme:layoutZone name = "user-navigation" /> < theme:layoutTitle /> < ui:displayMessage /> < theme:layoutZone name = "body" /> < theme:layoutZone name = "footer" /> </ theme:body > </ html > |
Attributes
Name | Required? | Description |
---|---|---|
bodyAttrs | No | Map of attributes to add to body tag, or list of attribute names to copy from Sitemesh body properties |